
export default {
	install(Vue){
		/* @desc:price保留小数 */
		
		Vue.filter('DateTime',(date)=>{
			if(date==''||date==null){
				return ''
			  }else{
				var date=new Date(date);
				var aaa = '日一二三四五六'
				var  day =aaa.charAt(date.getDay());     //"日"
				var y = date.getFullYear();
				var m = date.getMonth() + 1;
				m = m < 10 ? ('0' + m) : m;
				var d = date.getDate();
				d = d < 10 ? ('0' + d) : d;
				return y+'年'+m+'月'+d+'日';
			  }
		}) 
	}
}